package comday05.itheima03;

public class Demo06 {
    public static void main(String[] args) {

        //如何调用？
        int[] arr = {213,2,43,5,4,65,7,5,8768};
        getCount(arr);

    }


    //定义方法,统计数组中大于130的值有几个
    public static void getCount(int[] arr){
        int count = 0;

        for (int i = 0; i < arr.length; i++) {
            if(arr[i] >= 130){
                count++;
            }
        }

        System.out.println(count);
    }

}
